<!DOCTYPE html>
<html lang="en">
<!-- 首页页面 -->
<?php
// 判断是否正常访问
session_start();
if (!isset($_SESSION['USER'])) {
    echo "<script>alert('非法访问！请先登录！');window.location.href='../../../index.html';</script>";
    die();
}
?>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园报修系统 · 用户</title>
    <link rel="icon" href="../img/ICO.png">
    <link rel="stylesheet" href="../bootstrap-5.3.3-dist/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <script src="../bootstrap-5.3.3-dist/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/u-public.css">
    <link rel="stylesheet" href="css/u-main.css">
</head>

<body>
    <header class="sticky-top">
        <nav class="navbar navbar-expand-lg bg-body-tertiary bg-dark border-body" data-bs-theme="dark">
            <div class="container-fluid">
                <a class="navbar-brand" href="u-main.php">
                    <img src="../img/logo-0.png" alt="Logo" height="50" class="d-inline-block align-text-top">
                </a>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <i class="fas fa-map-marker-alt" style="color: white;"> 位置：</i>
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" href="javascript:;">首页</a>
                        </li>
                    </ul>
                </div>
                <span class="navbar-text navbar-text-control">
                    <i class="fa fa-user-friends" style="color: white; font-size: 25px"></i>
                    当前登录：<?php echo $_SESSION['USER']["u_name"]; ?>
                </span>
                <a class="navbar-brand" href="php/logout.php">
                    <i class="far fa-arrow-alt-circle-left" style="color: white; font-size: 25px" title="退出登录"></i>
                </a>
            </div>
        </nav>
    </header>
    <main>
        <div class="main-div">
            <div class="main-info-div">
                <div class="main-div-title">
                    <i class="fas fa-tools" style="font-size: 20px;"> 报修</i>
                </div>
                <div class="main-div-content">
                    <div class="main-div-content-item">
                        <a href="u-send-fixinfo.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-angle-double-up fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">提交报修申请</span>
                            </div>
                        </a>
                    </div>
                    <div class="main-div-content-item">
                        <a href="u-retract-fixinfo.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-undo-alt fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">撤回报修申请</span>
                            </div>
                        </a>
                    </div>
                    <div class="main-div-content-item">
                        <a href="u-follow-fixinfo.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-eye fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">报修记录跟进</span>
                            </div>
                        </a>
                    </div>
                    <div class="main-div-content-item">
                        <a href="u-history-fixinfo.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-search fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">报修历史记录查询</span>
                            </div>
                        </a>
                    </div>

                </div>
            </div>
            <div class="main-info-div">
                <div class="main-div-title">
                    <i class="fas fa-comments" style="font-size: 20px;"> 信息反馈</i>
                </div>
                <div class="main-div-content">
                    <div class="main-div-content-item">
                        <a href="u-feedback-history.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-eraser fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">反馈历史信息管理</span>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <div class="main-info-div">
                <div class="main-div-title">
                    <i class="fas fa-file-alt" style="font-size: 20px;"> 个人信息管理</i>
                </div>
                <div class="main-div-content">
                    <div class="main-div-content-item">
                        <a href="u-change-info.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-file-edit fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">基本信息修改</span>
                            </div>
                        </a>
                    </div>
                    <div class="main-div-content-item">
                        <a href="u-change-password.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-key fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">登录密码修改</span>
                            </div>
                        </a>
                    </div>
                    <div class="main-div-content-item">
                        <a href="u-revoked.php">
                            <div class="main-div-content-item-logo">
                                <i class="fas fa-user-slash fa-style-control"></i>
                                <span class="main-div-content-item-logo-text">账号注销</span>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <footer class="fixed-bottom">
        校园报修系统© 2025®
    </footer>
</body>

</html>